/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.ac.iie.di.tools;

import java.util.ArrayList;

/**
 *
 * @author lenovo-pc
 */
public class SplitMMurl {

	static String str = "\\\">图2</span>“<span style=\\\\\\\"color: rgb(136, 136, 136); background-color: rgb(255, 169, 0);\\\\\\\">开始打印照片</span>”，进入图3的界面，点击红圈内的“<span style=\\\\\\\"color: rgb(136, 136, 136); background-color: rgb(255, 169, 0);\\\\\\\">+</span>”号，开始添加需要打印的照片。</span></section></section></section></section></section></section></section><p style=\\\\\\\"text-align: center;\\\\\\\"><img data-s=\\\\\\\"300,640\\\\\\\" data-type=\\\\\\\"png\\\\\\\" data-src=\\\\\\\"http://mmbiz.qpic.cn/mmbiz/36T2RviaDvOmnuZDBedHfomk4HJibQKBICBticUGqfLDXibicrNupCPQd2Ebr35E6IZfGSOGQXS3z5VDnIkzqQibDh5g/0?wx_fmt=png\\\\\\\" data-ratio=\\\\\\\"1.771978021978022\\\\\\\" data-w=\\\\\\\"364\\\\\\\"  /><br  /></p><p style=\\\\\\\"text-align: center;\\\\\\\">图3</p><section label=\\\\\\\"Powered by 135editor.com\\\\\\\"><section data-tools=\\\\\\\"135编辑器\\\\\\\" data-id=\\\\\\\"85713\\\\\\\"><section><section><section><section label=\\\\\\\"Powered by 135editor.com\\\\\\\" style=\\\\\\\"font-family: 微软雅黑;\\\\\\\"><section class=\\\\\\\"135editor\\\\\\\" style=\\\\\\\"box-sizing: border-box; border: 0px none;\\\\\\\" data-id=\\\\\\\"45\\\\\\\"><section style=\\\\\\\"margin-top: 0.8em; margin-bottom: 0.5em; line-height: 32px; font-weight: bold; box-sizing: border-box;\\\\\\\"><section style=\\\\\\\"display: inline-block; float: left; width: 32px; height: 32px; border-radius: 32px; vertical-align: top; text-align: center; border-color: rgb(237, 131, 118); color: rgb(255, 255, 255); box-sizing: border-box; background-color: rgb(237, 131, 118);\\\\\\\"><section style=\\\\\\\"display: table; width: 100%; color: inherit; border-color: rgb(237, 131, 118); box-sizing: border-box;\\\\\\\" data-width=\\\\\\\"100%\\\\\\\"><section class=\\\\\\\"autonum\\\\\\\" placeholder=\\\\\\\"1\\\\\\\" style=\\\\\\\"display: table-cell; vertical-align: middle; border-color: rgb(237, 131, 118); box-sizing: border-box;\\\\\\\" data-original-title=\\\\\\\"\\\\\\\" title=\\\\\\\"\\\\\\\">4</section></section></section><section class=\\\\\\\"135brush\\\\\\\" data-brushtype=\\\\\\\"text\\\\\\\" style=\\\\\\\"margin-left: 36px; color: rgb(237, 131, 118); border-color: rgb(237, 131, 118); box-sizing: border-box;\\\\\\\"><span style=\\\\\\\"color: rgb(136, 136, 136);\\\\\\\">接着<span style=\\\\\\\"color: rgb(255, 79, 121);\\\\\\\">图3</span>步骤，选好照片后点“<span style=\\\\\\\"color: rgb(136, 136, 136); background-color: rgb(255, 169, 0);\\\\\\\">开始上传</span>”按钮</span></section></section></section></section></section></section></section></section><p style=\\\\\\\"text-align: center;\\\\\\\"><img data-s=\\\\\\\"300,640\\\\\\\" data-type=\\\\\\\"png\\\\\\\" data-src=\\\\\\\"http://mmbiz.qpic.cn/mmbiz/36T2RviaDvOmnuZDBedHfomk4HJibQKBICpNS5msibreGchYKBQqJ1XLDWOxjbOqyw9Dm80SzABOlOsFIAjaVOfew/0?wx_fmt=png\\\\\\\" data-ratio=\\\\\\\"1.7857142857142858\\\\\\\" data-w=\\\\\\\"364\\\\\\\"  /><br  /></p><p style=\\\\\\\"text-align: center;\\\\\\\">图4</p><section></section></section><section></section></section><section label=\\\\\\\"Powered by 135editor.com\\\\\\\"><section data-tools=\\\\\\\"135编辑器\\\\\\\" data-id=\\\\\\\"85713\\\\\\\"><section><section><section><section label=\\\\\\\"Powered by 135editor.com\\\\\\\" style=\\\\\\\"font-family: 微软雅黑;\\\\\\\"><section class=\\\\\\\"135editor\\\\\\\" style=\\\\\\\"box-sizing: border-box; border: 0px none;\\\\\\\" data-id=\\\\\\\"45\\\\\\\"><section style=\\\\\\\"margin-top: 0.8em; margin-bottom: 0.5em; line-height: 32px; font-weight: bold; box-sizing: border-box;\\\\\\\"><section style=\\\\\\\"display: inline-block; float: left; width: 32px; height: 32px; border-radius: 32px; vertical-align: top; text-align: center; border-color: rgb(237, 131, 118); color: rgb(255, 255, 255); box-sizing: border-box; background-color: rgb(237, 131, 118);\\\\\\\"><section style=\\\\\\\"display: table; width: 100%; color: inherit; border-color: rgb(237, 131, 118); box-sizing: border-box;\\\\\\\" data-width=\\\\\\\"100%\\\\\\\"><section class=\\\\\\\"autonum\\\\\\\" placeholder=\\\\\\\"1\\\\\\\" style=\\\\\\\"display: table-cell; vertical-align: middle; border-color: rgb(237, 131, 118); box-sizing: border-box;\\\\\\\" data-original-title=\\\\\\\"\\\\\\\" title=\\\\\\\"\\\\\\\">5</section></section></section><section class=\\\\\\\"135brush\\\\\\\" data-brushtype=\\\\\\\"text\\\\\\\" style=\\\\\\\"margin-left: 36px; color: rgb(237, 131, 118); border-color: rgb(237, 131, 118); box-sizing: border-box;\\\\\\\"><span style=\\\\\\\"color: rgb(136, 136, 136);\\\\\\\">上传完成之后，会跳出<span style=\\\\\\\"color: rgb(255, 79, 121);\\\\\\\">图5</span>的界面，此时需要输入验证码如图下红圈位置，然后再点“<span style=\\\\\\\"color: rgb(136, 136, 136); background-color: rgb(255, 169, ";

	
	public static void main(String[] args) {
//		String[] dvd = str.split("data-src=\\\\\\\\\\\\\"");
//		System.out.println(dvd.length);
//		for(int i = 1 ; i < dvd.length ; ++  i ){
//			System.out.println(dvd [i].substring(0, dvd[i].indexOf("\\\\\\\"")));
//		}
		SplitMMurl splitMMurl = new SplitMMurl();
		ArrayList<String> arr = splitMMurl.splitMMUrl(str);
		System.out.println(arr);
	}

	public static  ArrayList<String> splitMMUrl(String TxtContent) {

		ArrayList<String> arrayList = new ArrayList();
		String[] dvd = TxtContent.split("data-src=\"");
		
		for (int i = 1; i <dvd.length; ++i) {
//			System.out.println(dvd[i].substring(0, dvd[i].indexOf("\\\\\\\"")));
			arrayList.add(dvd[i].substring(0, dvd[i].indexOf("\"")));
		}
		return arrayList;
	}

}
